import request from '@/utils/request'

// 查询融资申请列表
export function listFinancingapply(query) {
  return request({
    url: '/business/financingapply/list',
    method: 'get',
    params: query
  })
}

// 查询融资申请详细
export function getFinancingapply(id) {
  return request({
    url: '/business/financingapply/' + id,
    method: 'get'
  })
}

// 新增融资申请
export function addFinancingapply(data) {
  return request({
    url: '/business/financingapply',
    method: 'post',
    data: data
  })
}

// 修改融资申请
export function updateFinancingapply(data) {
  return request({
    url: '/business/financingapply',
    method: 'put',
    data: data
  })
}

// 删除融资申请
export function delFinancingapply(id) {
  return request({
    url: '/business/financingapply/' + id,
    method: 'delete'
  })
}
